home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
editors
/
tscredd2
/
scrdisk5.exe
/
arc
/
TESTMOUS.C
< prev
next >
Wrap
Text File
|
1990-02-25
|
1KB
|
78 lines
#include <stdlib.h>
#include <conio.h>
#include "scredit.h"
void main()
{
clrscr();
gotoxy(20,4);
S_Init();
if (!S_MouseInstalled)
{
cprintf("Mouse Driver is not in memory!\n\c");
exit(0);
}
cprintf("Mouse Driver is ACTIVE and has %d buttons",S_Buttons);
gotoxy(32,10);cprintf("Press ESC to end.");
S_ActivateMouse();
S_SetMouseEvent("01111110");
S_ShowMouse();
S_SetMouseRange(10,6,70,9);
while (!S_Esc)
{
gotoxy(20,6);
cprintf("Mouse Cursor Location.. Row:%2d Column:%2d",S_MsRow,S_MsCol);
gotoxy(10,8);
if (S_MsLeftPressed)
cprintf("[ Left Pressed ]");
else
if (S_MsLeftReleased)
cprintf("[ Left Released ]");
else
cprintf("[ *** Left *** ]");
gotoxy(50,8);
if (S_MsRightPressed)
cprintf("[ Right Pressed ]");
else
if (S_MsRightReleased)
cprintf("[ Right Released ]");
else
cprintf("[ *** Right *** ]");
gotoxy(30,8);
if (S_MsMiddlePressed)
cprintf("[ Middle Pressed ]");
else
if (S_MsMiddleReleased)
cprintf("[ Middle Released ]");
else
cprintf("[ *** Middle *** ]");
S_ResetMouseFlags();
S_NextKey();
if (S_Ms->MouseEvent) S_AnalizeMouse();
}
S_HideMouse();
S_DisableMouse();
}